import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/cal',
    name: 'cal',
    component:  () => import('../views/AnalyzeDemo/AnalyzeView.vue')
  },
  {
    path: '/settings',
    name: 'settings',
    component: () => import('../views/AnalyzeDemo/SettingParamView.vue')
  },
  {
    path: '/',
    redirect:'/cal' //表示重定向到/cal即可
  },
]

const router = new VueRouter({
  routes
})

export default router
